import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


#include "defines.h"

//------------------ MAIN ----------------- //

public class TegMID extends MIDlet
{

	public cGame game_instance;

	public void startApp()
	{
		if(game_instance==null)
		{
			game_instance = new cGame(this);
			Display.getDisplay(this).setCurrent(game_instance);
			game_instance.run();
		}
	}

	public void pauseApp()
	{
	}

	public void destroyApp(boolean unconditional)
	{
		notifyDestroyed();
	}

}
